I have solved the above mentioned problem of killing timidity on gnome logout by adding this line killall timidity in /etc/gdm/PostSession/Default just before the "exit 0" line.
I have solved the above mentioned problem of killing timidity on gnome logout by adding this line PostSession/ Default just before the "exit 0" line.
killall timidity
in /etc/gdm/