Fixed graceful disconnect being logged as unexpected one.