After discussion change only affects error message that is more user-friendly now. I also added two tests that check how open_tables function works in both cases: with number of open tables less tha 1000 and greater than 1000