Version 1.01

Made sure that thread dies when exception occurs