Actually set exit code on script completion.