Finalize everything that is possible to finalize

Signed-off-by: Piotr Bocheński <bochenski.piotr@gmail.com>