If paint.Net is running, and I attempt to shut down my machine, Paint.NET prevents the machine from shutting down.
I get "(Waiting for) <image title> - paint.net 4.0.4 This program is preventing Windows from shutting down" This is independent of whether the image is un-saved or not.
I'm running 4.0.4 but this bug has been present for much longer than that.