Removed sigpipe from shutdown