Limit exception handling to generic exceptions