Added clean_session task to run periodically.