Fix uncaught exceptions.
Fix bad exception type.
First draft of urlCheck script.