NEW: added two exceptions in attempt method