Fix for issue #224, error thrown, no BYE sent