pick up ctrl-C so file is closed before program exits gensonicpi.py