Remove session writeClose