Close connection on shutdown [Finishes #83476486]