test shutdown