hrpsys_profile.py: remove undefined variables
hrpsys_profile.py: run hrpsys_profile within try block