prevent crash when disconnecting without a client id