Added a Plugin.close() method that is invoked during BRJS.close() for

any plug-ins that had their Plugin.setBRJS() methods invoked -- this
hopefully works, but I've been unable to fully test as the dashboard on
this branch isn't working.