Fix for exception in call_program with rlimits are set