Flush storage on exit.