Fix cleanup on unmount, and don't retry on EINTR.