implment stop scheduler