only close tunnel if bastion is being used