handle ctrl-c signal.
check exported file exists.