A Unified Plug-and-Play Framework for Effective Data Denoising and Robust Abstention