Fixing bug with switching connection when checking troia status
Removed unused import