bugfix: delete env after agent process is started