Add max timeout for script to run before exitting