Handling player disconnect properly