Methods to finish executor which would disconnect database handle