[client] Make the status button an error when a JS exception is not handled.