catches KeyboardException and saves the model before quitting, if possible
Merge pull request #29 from vsinha/issue_6

Solves issue #6