Ensure error payload isn't passed as callback to close()