Fixed disconnect bug; removed debug output