Makes sure host handle is nil or invalid before attempting to disconnect