capture the status before trying execution of the handler