Improved handling of error messaging. Adds ~/.af_crash file to store last error.