Error handler, logs and build structure