fixed shutdown hook/ made sure it uploaded