Add a shutdown method to the app