Do not always report useless exception to the user. Report them only for unexpected error. Fixes #4186