added exception handling for persistence service