Avoid deadlock in baseConn