Change error reporting in non GUI classes