hopefully return the proper exit status