Flush all dirty pages on shutdown.
Flush individual files when they are unmapped.