fixed on_block_exit usage
adding end of line