Allow disabling automatic reference cleanup.
Merge pull request #87 from Battlefy/feature/allow-disable-ref-cleanup

Allow disabling automatic reference cleanup.