The IB API has no command for closing. How did you get that message? Was it an asset that cannot be shorted?