Fix to check whether handle is valid in connect daemon