Automatically close connection when destructed (now no need to call close)
Deleted testApp::exit