implemented prettier graceful shutdown in martini requests