Add safe close to modal view