4.7 improve shutdown

give 3 second after encoding