[fixed] problem with close method that may produce shutdown hook exceptions from orient, when a database if closed twice