Added an Error GUI to replace printStackTrace()