adds termination of the process also for the encryption parto