WICKET-5776 Add information about the component when it fail in detach phase

try/catch the application related logic in Component#detach()