rotating application logs on shutdown