Added error handling for rasp-pi connection error