shutdown provider's executor when close
clean code