Close class menu when selecting randompc (fixes #203)