fire disconnect event right after connection is established instead of waiting for the browser to close