try/catch on onResize