Exceptions and Contingencies Handling in a SCADA System