Catch all types of exceptions in recv thread. Should probably help with ghosts problem, though I have no idea which else kind of exception could arise there.
#include <stdio.h>
#include "openalbridge.h"
int main (int argc, int **argv) {
openal_init();
openal_close();
return 0;
}