rewritten clockbean to include a boolean value to control when the timer is cancelled