cmdHandler: close all media, and not only media in execution.