STS-3967: Open close listener for jar remapping

Do not call publications model builds from classpath container
directly. It causes GUI freezes.