Added a traceback for debugging. Sth seems wrong with signals.