Added safety net when clustering to make sure the server is not going to crash.