Use KPool and fix close action.