Removes err from success callback
Now uses pselect to check if the connection is closed or if input from
bluethooth has been received.