added debug information on open error
added close() to the page object because of memory leak