close modal window when sockethub connection is sucessful