Remove useless socket error handling