WASHINGTON, April 17 (Reuters) - U.S. Energy Secretary Rick Perry is planning to leave the Trump administration and is finalizing the terms and timing of his departure, a Bloomberg reporter, citing two people familiar with his plans, said on Twitter on Wednesday.