fixing issue #17
fixing issue #17

a signal can only be set in the main thread
hence the signal for keyboardinterrupt, cannot be set in the Model class, as we might run this in a thread
stanle/madopt,stanle/madopt