Adapt code to changes on HBCore library
Catch every Exception when trying to close a session on finally clause
Fix toString method. Avoid null values