do not forget to set executor to null once we are done with it