wrap next in try/catch block