added config.onerror to worker servers