statement close strange behavior quickfix

Signed-off-by: Luka Unuk <luka@internet-inovacije.com>