[TCRYPT-17] - Exception handling added.