Moved thread start into try block to catch exceptions properly