Changed Process:terminate() to exit with an error code of 1 instead of 0.