fix hang on exception in child thread

It is possible for child thread to hang due to exceptions occurring before a notify to
the parent thread.  To prevent execution from hanging the child thread will notify parent
thread no matter what happens.