Added close report functionality.