In such case, how about delete the conn (make it nil) and try it later .