cleanup to process waiting