added small support when server crashes or suddenly shutsdown