close connection works now