Fix server abort

Returned exception from thread, rather than allowing it to abort the process. Fixes #51.