Changed thread sleep
Fixed SlotManager's onResume-bug