Close connection fix