add two logs when server may shutdown