only intercept shutdown once