Handled IOError crash in script console