Add url verification in open() and isOpen().

fixes #40