catch the refused exception