Reinit cipher in case of error.

cipher object reinitialization prevent incorrect state of the object