Changed castle to use applib(showMessage) to confirm shutdowns