Remove module IDs during remove

Fixes #121