support startup and shutdown events