Close some figures when tests complete.

Unclosed figures cause warnings on subsequent tests.