use with-current-buffer
use set-process-query-on-exit-flag