adding sigint handling for cleaning up temporal files