Set script to push logs on shutdown.