implemented disconnection, message not emitted though