Thank you for reporting, this is fixed in
https://github.com/discourse/discourse/commit/b0dd05fdc6b7b005ce8d37cd25d0be7a96fbe657
I don’t agree with this though. An admin may want to move a topic out of a category with auto close enabled without losing the auto close timer.