Adding nosql terminate method