better end session disconnect procedure