Convenient done handler that exits a worker process with the correct status code