Added Closeable interface to spyware plugin layer