US stock market closes lower, indexes gain in April