handling redirect of message on exception.