Closes the server and returns a future that completes when all resources are released.
Future<void> close({bool force = false});