fix exception of sqlSessionTemplate when close project