Simple fix to make the disconnect codes work on the client side.