Refactor sbws exit checking so it is consistent