handleCloseEvent() fixed for bootstrap 3.