Ensure stored queries/write ops are executed correctly after reconnect