Free screens in last-in-first-out order.

Fixes #144.