Cleaned messages and sessions at app startup.