end process with exit status != 0 if an error happened