[PATCH] network: Fix disconnect_callback crash on error