Handling connectivity issues