fixed memory issue

when a tab is closed or reloaded while downloading the downloaded pages
are removed from the memory now.