Correctly closing WMASource