Close logfile before trying to delete it :)