Fix Read only
close on disconnect