snmptrap: handle shutdown

Previously, when trying to shutdown logstash, the snmptrap plugin would
endlessly try to restart. This change catches the ShutdownSignal
exception, exits the listening thread and returns, allowing Logstash to
shutdown.