$SIG{PIPE} = sub { #handle error }