Hopefully solves recent build failures with licensing

Conflicts:
	pom.xml
Fixing build configuration re; licencing
Do not swallow exceptions.
Richer information to indicate the place where swith-to-slave even is cancelled.