Added Exceptionhandling for json loader