Try to gracefully close connections to peers then close the session.
Future<void> close() => client.close();