fixed output of uncaught errors
fixed serviceAssistant won't wait for key to be loaded.