Monitoring, Liquidation, and Security Design