Sometimes as a last resort when debugging HelenOS you need to use the kernel console. If the problem has something to do with IPC, you will end deciphering the IPC communication with
ipc
command. If you also do not remember that 1031 means request to VFS for file closing, you might find the following cheat sheet useful.