Cleared out vars on close, and called seekTo for encrypt and decrypt