Fix for destroying gatt client in case of error.