More resource leaks and timeouts