Handle errors and network dropouts