Fix cmodification on server shutdown