add delay for shutdown