Prevent task scheduling on disable.