Cleanup function: check if filename exists bevore try to remove