Exception handling in status.py moved to a protected block here.