fixed (position of) wrong #endif

necessary in order to compile when quick_exit() is not present (i.e. `#define QUICK_EXIT` is commented out)