libsmon.py: better exception handling in checker and tunnable history size