fix issues with opened file limit and collecting deployment errors