Thanks for pointing out this error. I will change it to trigger toggleControlPanel() no matter success or failure.