apparently if an exception is thrown in ruby code as part as a -e block, it doesn't cause ruby to exit with an error code. faking it.