Avoid crashing when sockets timed out.