try to catch and log all other errors, then exit