refactor sound & socket setup
try reconnect only on socket error
formatting
use property for initial close event
refactor playing sound on startup adding spinners