openHAB 2.4 MQTT Broker fails sporadically

It is the second time that the MQTT broker, which comes with openHAB 2.4, suddenly fails.
All my sensors, which publish their data via MQTT do not get received and not persisted in InfluxDB anymore.

2019-03-17 05:15:59.062 [ERROR] [quette.server.netty.NettyMQTTHandler] - Unexpected exception while processing MQTT message. Closing Netty channel. CId=paho545882276181985
java.nio.channels.ClosedChannelException: null
        at io.netty.channel.AbstractChannel$AbstractUnsafe.write(...)(Unknown Source) ~[?:?]
2019-03-17 05:15:59.047 [WARN ] [r.internal.EmbeddedBrokerServiceImpl] - Embedded broker offline
org.eclipse.paho.client.mqttv3.MqttException: Connection lost
        at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:181) [199:org.eclipse.paho.client.mqttv3:1.2.0]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
        at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:210) ~[?:?]
        at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[?:?]
        at java.net.SocketInputStream.read(SocketInputStream.java:224) ~[?:?]
        at java.io.DataInputStream.readByte(DataInputStream.java:265) ~[?:?]
        at org.eclipse.paho.client.mqttv3.internal.wire.MqttInputStream.readMqttWireMessage(MqttInputStream.java:92) ~[?:?]
        at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:133) ~[?:?]
        ... 7 more
2019-03-17 05:15:59.090 [ERROR] [quette.server.netty.NettyMQTTHandler] - Unexpected exception while processing MQTT message. Closing Netty channel. CId=paho545882276181985
java.nio.channels.ClosedChannelException: null
        at io.netty.channel.AbstractChannel$AbstractUnsafe.write(...)(Unknown Source) ~[?:?]
2019-03-17 05:15:59.179 [ERROR] [quette.server.netty.NettyMQTTHandler] - Unexpected exception while processing MQTT message. Closing Netty channel. CId=paho545882276181985
java.nio.channels.ClosedChannelException: null
        at io.netty.channel.AbstractChannel$AbstractUnsafe.write(...)(Unknown Source) ~[?:?]
2019-03-17 05:15:59.196 [ERROR] [quette.server.netty.NettyMQTTHandler] - Unexpected exception while processing MQTT message. Closing Netty channel. CId=paho545882276181985
java.nio.channels.ClosedChannelException: null
        at io.netty.channel.AbstractChannel$AbstractUnsafe.write(...)(Unknown Source) ~[?:?]
2019-03-17 05:15:59.207 [ERROR] [quette.server.netty.NettyMQTTHandler] - Unexpected exception while processing MQTT message. Closing Netty channel. CId=paho545882276181985
java.nio.channels.ClosedChannelException: null
        at io.netty.channel.AbstractChannel$AbstractUnsafe.write(...)(Unknown Source) ~[?:?]
...
2019-03-17 05:15:59.470 [ERROR] [quette.server.netty.NettyMQTTHandler] - Unexpected exception while processing MQTT message. Closing Netty channel. CId=3SwOzuCEc7dOGTIstynYWm
java.util.concurrent.RejectedExecutionException: Task io.moquette.spi.impl.BrokerInterceptor$$Lambda$510/9516192@42656f rejected from java.util.concurrent.ThreadPoolExecutor@1280e45[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 799288]
    at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2063) ~[?:?]
    at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830) ~[?:?]
    at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1379) ~[?:?]
    at io.moquette.spi.impl.BrokerInterceptor.notifyClientConnectionLost(BrokerInterceptor.java:117) ~[209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.moquette.spi.impl.ProtocolProcessor.processConnectionLost(ProtocolProcessor.java:684) ~[209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.moquette.server.netty.NettyMQTTHandler.channelInactive(NettyMQTTHandler.java:101) ~[209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.moquette.server.netty.metrics.MQTTMessageLogger.channelInactive(MQTTMessageLogger.java:98) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:75) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:377) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:342) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:75) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.moquette.server.netty.AutoFlushHandler.channelInactive(AutoFlushHandler.java:89) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:75) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:75) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:75) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.handler.timeout.IdleStateHandler.channelInactive(IdleStateHandler.java:277) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1354) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:917) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannel$AbstractUnsafe$8.run(AbstractChannel.java:822) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:463) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at java.lang.Thread.run(Thread.java:748) [?:?]
...
2019-03-17 05:16:03.724 [ERROR] [quette.server.netty.NettyMQTTHandler] - Unexpected exception while processing MQTT message. Closing Netty channel. CId=mygateway1
java.util.concurrent.RejectedExecutionException: Task io.moquette.spi.impl.BrokerInterceptor$$Lambda$510/9516192@75b8b7 rejected from java.util.concurrent.ThreadPoolExecutor@1280e45[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 799288]
    at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2063) ~[?:?]
    at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830) ~[?:?]
    at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1379) ~[?:?]
    at io.moquette.spi.impl.BrokerInterceptor.notifyClientConnectionLost(BrokerInterceptor.java:117) ~[209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.moquette.spi.impl.ProtocolProcessor.processConnectionLost(ProtocolProcessor.java:684) ~[209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.moquette.server.netty.NettyMQTTHandler.channelInactive(NettyMQTTHandler.java:101) ~[209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.0.oh240]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245) [209:org.eclipse.smarthome.io.mqttembeddedbroker:0.10.
    ...    
...
2019-03-17 05:16:58.937 [INFO ] [.reconnect.PeriodicReconnectStrategy] - Try to restore connection to '127.0.0.1'. Next attempt in 10000ms
2019-03-17 05:16:59.001 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '127.0.0.1' with clientid paho545882276181985 and file store '/var/lib/openhab2/mqtt/127.0.0.1'
...
2019-03-17 17:16:10.740 [INFO ] [.reconnect.PeriodicReconnectStrategy] - Try to restore connection to '127.0.0.1'. Next attempt in 10000ms
2019-03-17 17:16:10.752 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '127.0.0.1' with clientid paho545882276181985 and file store '/var/lib/openhab2/mqtt/127.0.0.1'

The last 2 messages were printed from 05:15 to 17:16 every 10s until I restarted openHAB2.
Any idea why this happens? It has been the second time, the last time was a few weeks ago and was resolved by a restart as well.