#1580583 Adding error andling and creation of player