fixed ConnectException when restart was caused by Scanner
Merge pull request #79 from saladinkzn/scannerRestartFix

Fixed ConnectException when restart was caused by Scanner