Adding Exception Handling Framework