Fix closing project after deleting module in multi-module project