quit now cleans and closes correctly