Finalize the system and flush pending operations.
Usage
finalize()
None
Call this to flush all pending operations.