Add ipc_destroyInput() and ipc_destroyOutput()
Relocate init & destroy IPC code beneath locking code