Added error window and connection test.