ActiveAE: fix hang in case of sink fails writing data
Merge pull request #3134 from FernetMenta/activefix

ActiveAE: fix hang in case of sink fails writing data