Make sure to shutdown when parent disconnects

Should address EADDRINUSE errors
Merge pull request #797 from Singly/dss-fix-ereuseaddr

Make sure to shutdown when parent disconnects