How to avoid a margin call and forced closure