catch exception to return to user