Add simple server shutdown function