This is a known bug in NB that had been fixed in the recent builds - the destroy method had been generated wrong. Both, Gordon, and Chris pointed out the problem.
Regards,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]
http://forums.java.net/jive/thread.jspa?messageID=222760