To allow user to hook into process lifecycle and handle things like starting/stopping storage / writing state to disk.