plugins/hang: give the ping check a bit of leeway
plugins/log: fix missing import
plugins/script: don't cancel task on server shutdown