add shutdown event