Fix exception on exit in some case, sequel of an earlier cleanup commit I couldn't find back. Disconnecting the event is apparently the way to go. https://wiki.wxpython.org/Surviving%20with%20wxEVT%20KILL%20FOCUS%20under%20Microsoft%20Windows
#
# Dockerfile for wxPython3.0 running on python2.7
#
FROM python:2.7-stretch
RUN set -xe \
&& apt-get update \
&& apt-get install -y --no-install-recommends python-wxgtk3.0 python-matplotlib \
&& apt-get install -y --no-install-recommends python-xvfbwrapper xvfb \
&& apt-get clean