Changed the core handler such that the correct initial error is logged as expected and that all signal reivers are executed. Any subsequent errors are logged as well. Unit test has been added, but does not work due to issues with getting the logging output