add log messages at application startup and shutdown.