.flush can raise NetlibDisconnect. This fixes a traceback found in fuzzing.