Allow an exit code to be passed in.
Exit cleanly.
Use trivial-timeout.
Timeout.