Removed wierd try blocks.
Updated Dijkstra example.