synchronized ErrorHandler, Debug and Log. Minor testing with LongFunction writing to log. Appears to work correctly