Bug fix in exception handling and fixed the exception service example