Proper fix for issue #182 of original project

There was a problem in the initial fix for this issue.
The isAlive() check is not bypassed in the current fix.