Set status on exception.