check for close method before calling it
@@ -559,6 +559,7 @@ class Node(HasActionQueue, Motor, Propagator, MessageProcessor, HasFileStorage,
'primary storage: {}'.format(self, ex))
try:
+ if callable(getattr(self.secondaryStorage, 'close', None)):
self.secondaryStorage.close()
except Exception as ex:
logger.warning('{} got exception while closing '
