Added destructor to Cipher class.