Prevent closing a null curl connection