Remove JOptionPanes from server side