bugfix

program is now ablte to exit again... see issue #1
added thread names...