clean up exceptions handling. fix PHPCR-71
Merge pull request #354 from doctrine/exception-cleanup

clean up exceptions handling