fixed error in remove listeners on serverdisconnect
implemented callback and timeout on connect to server