Work around a KSP bug

Also, lots of logging. The KSP bug is at lines 164-171 of ksp_plugin_adapter.cs.