Cleans up selenium starting/removal code