Fixed bug where flows were not being removed from the flowMap after they
started running.