prepare app for OSError exception