fix close behavior for intelliJ plugin