fix gunicorn start/stop/reload/restart bug