Hacky way to prevent failed to read from socket, for some unknown reason.