How can I retrieve a Pokémon from the Dream World after it has closed down?

You can't do this since the Wi-Fi for Black & White 1 and Black & White 2 was shut down, which is sad but true and simple