Fix bug with reading URL -- somehow exception handling got moved.