The market has a habit of teaching you lessons, just make sure you heed them and don't make it again.
A 40 pip move ruined your account? Sounds like ridiculous leverage issues.