clean up exceptions handling. fix PHPCR-71