Do some beacon related cleanup.