The close question dialogue was blocking the close event handler. The dialogue is called in a non-blocking way.