move offline imap kill command to external script