Performing tasks at shutdown

Is there something like an ‘rc.shutdown’ in QNX, where I can put some tasks to perform at shutdown ?
I wrote a shell script and named it /etc/rc.d/rc.shutdown, but it is not executed.
Agnelo