cleaned up demand monitor cleanup operations; fixed st_clear definition