Fixes and tweaks from @melloc: handle SIGTERM and make init script executable