Moved initErrorHandling to initAll