Reinitialize connection to Pi if it fails