status check inside try