handle sigpipe