Map runtime errors to process status codes so that crane can be used within scripts