Properly shut down file and pressure boxes