adds close connection