Refactor the accept_callback properly to allow stop/start on HttpServer