Fixed various bugs in the AgentWatcherThread and WatcherSelectPanel.