Magnetization Reversal of Rectangular Particles: Closure States and Effect of Dipolar Coupling