added proper error handling for core initialization fails in GUI