Updated FileOpener.java for error handling callback