app: cleanly remove log handlers on exit
Remove the log handlers registered in errors_init(), in errors_exit(), and call errors_exit() before destroying the Gimp instance, since the log handlers depend on it. This avoids segfaulting if a message is logged after destroying the Gimp instance.
This commit is contained in: