#0 Don't redirect stdout to logger

Signed-off-by: Aleksey Maslennikov <MaslennikovAA@GDEETOTDOM.RU>
Flush stream on write

Signed-off-by: Aleksey Maslennikov <MaslennikovAA@GDEETOTDOM.RU>
#0 added SIGHUP handler