write to disk and quit work