End the process on error