Remove Java console pop-up
Better error handling