Fixed data not removed from control socket