when throwing error the process did not exit