Prevent SmtpServer thread from spinning after serverSocket has been closed