trigger write before reboot - probably should use a signal in the manager to ensure it happens, but this will do for now