fix typo
increase stop recording timeout
send tcp FIN by first shutdown() socket