Some early returns were missing after the removal of longjmp in #22. This has led to segfaults on Linux (confirmed locally).