added return in catch block