write quit now works