*better handling of closing Connection