Expose a way of running a nagios plugin without exiting for tests