Implement delete plugin

This builds on the stop() and unload() plugin methods.  I also added some NPE avoidance measures since listFiles() can return a null array under some conditions.