Strange deadlocks when reloading applets