Added ALT-F4 handling.