Pope Francis wrote resignation letter in case of poor health