new method for handling of terminating instances