graceful shutdown for martini