Purge messages so ithe app does not crash due to OOM