Should avoid NPE, when standalone server is stopping.