The previous solution caused different problems. Therefore,
add this as a workaround to deinitialize InputManager, even if
the object still has strong references and therefore cannot be
The comment explains some problems, which look like not easily
fixable for the 3.0 branch.
(cherry picked from commit 2c0ea2ff)
Signed-off-by: Jean-Baptiste Kempf <email@example.com>