Correctly destroy connection on timeout