Fixed quitting issue for eclipse apps.