1. Refund is impossible. It's really hard to get refund at that time. In other words, you have spent 1 month in class, you drop it and you want your money back, which is rarely possible.
2. Choose the safest way. Don't leave this country before Oct, and maintain your F1 status. Compare with your tuition, losing H1B hurts more.