Merge pull request #1 from irr/master

SIGTERM handling and socket_path checking