DATAJPA-506 - Add support for conversion of Blob values to byte[] in native queries.

Added missing resource cleanup and better exception handling.