Fix: defer should have access to the return err
Fix: defer should have access to the return err

Signed-off-by: Artem Sidorenko <15a0730a27c69f62ab86f2b6c639fca202166c02@posteo.de>

artem-sidorenko/chagen