def cleanup_ucs_handler(handler_obj):
    """
    Clean up UCS handler object
    """
    if not (handler_obj and isinstance(handler_obj, dict)):
        return None
    for handler in handler_obj.values():
        handler["ucs-handle"].logout()