When The Last Device is disconnected the Module Gateway disconnects from External Server. That it not a wanted behaviour (probably.). It needs to wait until to timeout occurs.