Error termination added