unregister tasks in a separate thread, to not interfear with application business logic (turn On/Off lights)