errors in cleanup