Fixed mysql disconnect crashing the server