Handle SIGTERM like SIGINT and SIGQUIT

Signed-off-by: Christophe Vu-Brugier <cvubrugier@yahoo.fr>
Fix endianness of the iSNSP response status code

Signed-off-by: Christophe Vu-Brugier <cvubrugier@yahoo.fr>