Activity _running flag is now set to false when the activity finishes or throws, previously it was only set if wait had been called. Added test for this scenario