Extract the "check_status()" from masterd/master_server and use here to fill the exception.