call connect callback only once and pass socket error to connection #72 #61 #68