Added Exception handling in parsing module