Close does not close the immediately, so no data will be lost.