fix ensemble communication deadlocks

Closes ref #53

makes sure no active ensemble is trying to communicate with a finished ensemble