Fix wrong detect online status when server shutdown