Proper close code for jsr356 handling
Log it as error
Switch from WARN to DEBUG to prevent user being confused
Fixed #1626
Fixes #1625
Fixes #1633