close file after finshed blockprocess
add tracing to gui