catch SIGPIPE

Now catching SIGPIPE to avoid program termination when e.g. a client disconnects.
Merge branch 'master' of https://github.com/oakey-dev/moonitor