fix issue with mvn spring-boot:run with springloaded

I am not happy with this solution and I think we should remove the exception in the logger.error to avoid any questions about it.