Implemented shutdown of HTTPServer on app suspension and restart on app resume