Module close fixed to work as intended.