close webpage on dispose

Webpage must be closed on dispose.