AES Encryptor better error handling (v2)