BugFix Input var not freed + Sleep not MsgSleep when code run from different thread