Ensure to not disconnect from objects that do not exists anymore

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>