Safer stop scripts for upstart