Handling disconnecting peers