flush all data from buffer to device on process death