A judge told Ben Llewellyn to reflect on his life as he approached his 40th birthday