[knet] call into knet_fini on error to allow logging thread to complete its work

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
[knet] give log thread to flush the buffer before going out

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>