[Graph][Maze][Dijkstra] Added Exception controls