added convenience method for shutdown