moved setting window.error to before any script is loaded to help catch some issues earlier. changing base layer after project is created no longer needs app exit.