adding abnormal termination for errors