adding ctrl-c signal handling to remove temporal dir