added write on shutdown + version bump