[Bug 436711] Hang up shutdown with "File descriptor 3 left open"