Updated Persist writer to have a configurable background flush thread
Updated termination process
Fixed deadlock issue
Fixed issue where exception terminated thread and it wouldn't start again
Merge remote-tracking branch 'apache/STREAMS-72'