Fixed up documentation, including specifying which close event goes first.