Fixes expected error when getting encoding while shutting down.
1 file changed