Get open fds

Get all open fds, so we can debug better problems such as #1360.