Unreal Editor freezes after closing standalone game

On 4.14, the editor sometimes freezes completely after closing a standalone game. It doesn’t happen every time, but happens often enough to be a problem, and I’ve seen it happening on multiple projects.