Fix bug that occurs if close/closeAll is called more than once

The elements in the object should be deleted, not just set to 'undefined'. Otherwise subsequent calls will attempt to call iframes[url].remove on a non-existent element throwing an exception.