reset_all: Check terminal isn't closed

Fixes: https://code.google.com/p/colorama/issues/detail?id=50