Bad bathroom fans are a common cause of house fires. Make sure to disconnect it, regardless of your plans to replace it.
At some point they started adding a thermal fuse to bathroom fans to prevent it from going up in flames if the motor is jammed up.