Fixed disconnection of NULL server