added shutdown function to lunch server controller (not yet tested)