DBALException catch added to batchDelete and delete

This is related to #169 issue.