Use exec to properly exit on failure

Please accept my pull