If a bounty is active on a question, that question cannot be closed. However, attempting to vote to close works just fine until the "Vote to close" button is pressed. Only then does the "this question has an active bounty and cannot be closed" message pop up.
There may be a technical reason for this, but there's no workflow reason for it. Please show the message as soon as the "close" link is clicked.