implemented disconnect from server