Detect when we fail to create listener

We might fail to create the listener. In that case we should throw an
exception. It will be picked up by the caller and the message printed to
the log.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>