Return error code on failure exit.