A minimalistic signal handling has been implemented to catch SIGPIPE to avoid getting killed by it.