Fixes basic_cancel when connection is None