Added clean_session task to run periodically.

Refs #1899.