made a few classes implement closeable

Made a few classes implement closable.