Listen where the noise is coming from using a stethoscope or a short plastic hose. Trace the area that makes the loudest noise. If the engine is already off by then, the cause might be the pressures equalizing in the a/c lines or the compressor or it might have a leak in the brake booster check valve