Allow return status to be specified using quitWithStatus.