Added a timeout to the shutdown script

timeout can be overwritten with a command line argument