catch exception & not using alert