Following commit 13006f3d corrected the debug message in state() from AUTHENTICATE to AUTHENTICATE_FINAL.