How does the Liquidation Engine work?

Updated 

Upon liquidation, the Liquidation Engine attempts to close the position at the last market price