More error proof run and stop scripts. Gracefull shutdown.