Disabled app nap and fixed handshake bug