Try to keep exceptions block as small as possible. Set configuration after the exception block