Gracefully open and close your http server