Improved galaxy export error handling + fix js warnings