Prepare and Close a bar