client: send MSG_UNREGISTER on disconnect