php die out very fast and didn't wait after publish , is there any "flush" like function can be call after publish and before conn.close