add error handling in get file
disconnect signal that should be disconnected