FEATURE: added ability to cleanup pending messages.