Fix SIGABRT if socket read fail