his service to the kingdom and the lords had been nearly flawless , but for one thing , which he tried to keep hidden , but was soon to be discovered by the king , which would put john oldcastle in danger of his life .