Reverting to the previous termination code

- For SQLServer