Fixed minor issues in OSG exception handling