setAfterDisconnect is working!