Added option to listen on unix domain sockets and added signal handlers to clean up gracefully.