added a delayed callback to cleanup processes