[listener] check setsockopts return codes

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