FORUM-606 | Fix problem of NullPointerException when stop server