Add terminate method to instances controller