Add block for catch RejectedException.