moving status call inside try catch block