added close connection