astrofrog/psrecord — pull request #13 by astrofrog (2014-10-22 11:19:28+00:00)
Title: Catch first keyboard interrupt

and make sure that log file gets closed and plot gets made (based on change by @saimn)