utests: extract method
Logging: Unregister RobotHandler after execution. Fixes #1821.

RobotHandler takes care of forwarding messages logged by the standard
logging module to Robot's log. It was not unregistered after
execution, and thus there were problems when executing tests multiple
times in same process if logging module actually was used.