Added the correct shutdown handling code
Added the correct shutdown handling code

klammbueddel/duplicati,a1ezzz/duplicati,AndersGron/duplicati,a1ezzz/duplicati,mnaiman/duplicati,AndersGron/duplicati,sitofabi/duplicati,a1ezzz/duplicati,AndersGron/duplicati,AndersGron/duplicati,a1ezzz/duplicati,agrajaghh/duplicati,AndersGron/duplicati,agrajaghh/duplicati,klammbueddel/duplicati,mnaiman/duplicati,sitofabi/duplicati,duplicati/duplicati,duplicati/duplicati,duplicati/duplicati,sitofabi/duplicati,gerco/duplicati,agrajaghh/duplicati,gerco/duplicati,a1ezzz/duplicati,gerco/duplicati,klammbueddel/duplicati,mnaiman/duplicati,gerco/duplicati,agrajaghh/duplicati,mnaiman/duplicati,sitofabi/duplicati,duplicati/duplicati,agrajaghh/duplicati,gerco/duplicati,klammbueddel/duplicati,klammbueddel/duplicati,mnaiman/duplicati,sitofabi/duplicati,duplicati/duplicati