Add ability to close media objects