Close figures after colorbar tests.

Fixes the problem with "dangling" open figures spotted in #1127.