added try catch in case player loggs out