Update interface.py

Adds shutdown support.