Added a minor Exception Handling Mechanism