Ignore TypeError when closing after using the fake socket.