Added exception handling to client resource file