Fix issues with errors and disable logging