It might be better to just exit the JVM in this situation rather than write out an endless stream of error logs. Maybe it could log one error message and then shutdown.