Fixed some errors
Added releasePage() method with automatic open/close detection