Interrupt closing if a view doesn't close

Fix #311.