Adds error? method to check whether the process exited successfully, allowing the user to use custom error-handling logic.