Change in module unload behaviour - need info

Hi,

Has there been a change in the module unload procedure?

I use the module res_netsec.so. I could unload it in Rel 1.2.0 with out any issues. But now, I have Rel 1.2.5 now. If I unload the module now, the CLI goes into an infinite loop continuosly printing the msg:

“Use EXIT or QUIT to exit the asterisk console”

The module version of res_netsec.so is the same and so there is no change there.

I would really appreciate it if somebody can give me more info?

Also where can i find documentation of how to develop a new module to asterisk?

Thanks,
Krish