Update controller.py

closing only current instance